-- GENERATED SPELL FOR [Fouled Water Spirit] --


function spell0_17358(pUnit, Event) --@Bloodbolt,n/a--
pUnit:FullCastSpellOnTarget(31281,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17358', 7000, 1)
end

function spell1_17358(pUnit, Event) --@Bloodmyst Chill,n/a--
pUnit:FullCastSpellOnTarget(31280,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17358', 626, 1)
end

function Sorts_17358(pUnit, Event)
local choix_sorts_17358 = math.random(0, 1)
if choix_sorts_17358 == 0 then
pUnit:RegisterEvent('spell0_17358', 1, 1)
end
if choix_sorts_17358 == 1 then
pUnit:RegisterEvent('spell1_17358', 1, 1)
end
end

function mob17358_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17358', math.random(1500, 3000), 1)
end

function mob17358_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17358_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17358_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17358, 1, 'mob17358_Action')
RegisterUnitEvent(17358, 2, 'mob17358_Leave')
RegisterUnitEvent(17358, 3, 'mob17358_Kill')
RegisterUnitEvent(17358, 4, 'mob17358_Die')
